<?xml version="1.0" encoding="UTF-8"?>
<assembly>
    <id>windows-id</id>
    <formats>
        <format>zip</format>
    </formats>

    <dependencySets>
        <dependencySet>
            <outputDirectory>/lib</outputDirectory>
            <includes>
                <include>com.automatak.archivist:archivist-branding</include>
            </includes>
        </dependencySet>
    </dependencySets>

    <fileSets>
        <!--    include most of the Karaf distribution except for things we don't need
                or a just going to override -->
        <fileSet>
            <directory>target/dependencies/win/apache-karaf-${karaf.version}</directory>
            <outputDirectory>.</outputDirectory>

            <excludes>
                <exclude>etc/custom.properties</exclude>
                <exclude>etc/org.apache.karaf.features.cfg</exclude>
                <exclude>demos/**</exclude>
                <exclude>*</exclude>
            </excludes>

        </fileSet>

        <fileSet>
            <directory>target/archivist-repo</directory>
            <outputDirectory>system</outputDirectory>
            <excludes>
                <exclude>org/apache/karaf/**/*</exclude>
            </excludes>
        </fileSet>

        <!-- Move over the configuration information -->
        <fileSet>
            <directory>target/classes/etc</directory>
            <outputDirectory>/etc/</outputDirectory>
            <lineEnding>dos</lineEnding>
            <fileMode>0644</fileMode>
        </fileSet>

    </fileSets>

    <files>
        <file>
            <source>${basedir}/target/classes/oam-feature.xml</source>
            <outputDirectory>/system/org/gridprotectionalliance/oam-assembly/${oam.version}/</outputDirectory>
            <destName>oam-assembly-${oam.version}-features.xml</destName>
            <fileMode>0755</fileMode>
            <lineEnding>dos</lineEnding>
        </file>
    </files>

</assembly>